package cn.lix.sc.mongo.dao;

import cn.lix.sc.mongo.entity.User;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface UserDAO extends MongoRepository<User, Integer> {

    User findUserByName(String name);

    List<User> findAllByAgeBetween(Integer start, Integer end);

    List<User> findAllByPhoneNoBetween(Long start, Long end);

    List<User> findUserByPhoneNoLessThan(Long no);

}
